.class Lcom/example/m6wmr/SearchActivity$8;
.super Ljava/lang/Thread;
.source "SearchActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/SearchActivity;->getShopSource()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/SearchActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/SearchActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    .line 483
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 12

    .prologue
    const/4 v11, 0x1

    .line 485
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 486
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    # getter for: Lcom/example/m6wmr/SearchActivity;->temshopls:Ljava/util/List;
    invoke-static {v9}, Lcom/example/m6wmr/SearchActivity;->access$13(Lcom/example/m6wmr/SearchActivity;)Ljava/util/List;

    move-result-object v9

    invoke-interface {v9}, Ljava/util/List;->clear()V

    .line 488
    new-instance v6, Landroid/os/Message;

    invoke-direct {v6}, Landroid/os/Message;-><init>()V

    .line 491
    .local v6, "msg":Landroid/os/Message;
    new-instance v9, Ljava/lang/StringBuilder;

    iget-object v10, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v10, v10, Lcom/example/m6wmr/SearchActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v10}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 492
    const-string v10, "/index.php?ctrl=app&source=1&action=newsearchshop&lat="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 493
    iget-object v10, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v10, v10, Lcom/example/m6wmr/SearchActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v10}, Lmyapp/MyApp;->getLat()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&lng="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v10, v10, Lcom/example/m6wmr/SearchActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v10}, Lmyapp/MyApp;->getLng()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&searchvalue="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 494
    iget-object v10, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    # getter for: Lcom/example/m6wmr/SearchActivity;->searchvalue:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/SearchActivity;->access$8(Lcom/example/m6wmr/SearchActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&page="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    # getter for: Lcom/example/m6wmr/SearchActivity;->page:I
    invoke-static {v10}, Lcom/example/m6wmr/SearchActivity;->access$11(Lcom/example/m6wmr/SearchActivity;)I

    move-result v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&areaid="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    # getter for: Lcom/example/m6wmr/SearchActivity;->areaid:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/SearchActivity;->access$19(Lcom/example/m6wmr/SearchActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 495
    const-string v10, "&datatype=json"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 491
    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    .line 497
    .local v8, "url":Ljava/lang/String;
    const-string v9, "seaarch------"

    invoke-static {v9, v8}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 498
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->m:Lmyapp/MyApp;

    invoke-static {v8, v9}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v7

    .line 503
    .local v7, "str":Ljava/lang/String;
    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, v7}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 505
    .local v4, "json":Lorg/json/JSONObject;
    const-string v9, "error"

    invoke-virtual {v4, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    const-string v10, "true"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_0

    .line 506
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 508
    const-string v9, "msg"

    invoke-virtual {v4, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v6, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 509
    const/4 v9, 0x1

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 510
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 573
    .end local v4    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 513
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v9, "msg"

    invoke-virtual {v4, v9}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 514
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 515
    const/4 v9, 0x2

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 516
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 565
    .end local v4    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v1

    .line 567
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    .line 568
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 570
    const/4 v9, 0x4

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 571
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 520
    .end local v1    # "e":Lorg/json/JSONException;
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    const-string v9, "msg"

    invoke-virtual {v4, v9}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v5

    .line 523
    .local v5, "json1":Lorg/json/JSONObject;
    const-string v9, "shoplist"

    invoke-virtual {v5, v9}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    .line 524
    .local v3, "jarray":Lorg/json/JSONArray;
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-ge v9, v11, :cond_2

    .line 526
    const/4 v9, 0x3

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 527
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 528
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    goto :goto_0

    .line 531
    :cond_2
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_1
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-lt v2, v9, :cond_3

    .line 561
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 562
    const/4 v9, 0x3

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 563
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 532
    :cond_3
    new-instance v0, Lbean/ShopBean;

    invoke-direct {v0}, Lbean/ShopBean;-><init>()V

    .line 533
    .local v0, "bb":Lbean/ShopBean;
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 534
    const-string v10, "shopid"

    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 533
    invoke-virtual {v0, v9}, Lbean/ShopBean;->setShopId(Ljava/lang/String;)V

    .line 535
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 536
    const-string v10, "shopname"

    .line 535
    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setShopName(Ljava/lang/String;)V

    .line 537
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    const-string v10, "juli"

    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setJuLi(Ljava/lang/String;)V

    .line 538
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 539
    const-string v10, "limitcost"

    .line 538
    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setLimitCost(Ljava/lang/String;)V

    .line 540
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    const-string v10, "point"

    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setPoint(Ljava/lang/String;)V

    .line 541
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 542
    const-string v10, "shopimg"

    .line 541
    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setShopImg(Ljava/lang/String;)V

    .line 543
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 544
    const-string v10, "opentype"

    .line 543
    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setOpenType(Ljava/lang/String;)V

    .line 545
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 546
    const-string v10, "sendtype"

    .line 545
    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setsendtype(Ljava/lang/String;)V

    .line 547
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 548
    const-string v10, "pscost"

    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 547
    invoke-virtual {v0, v9}, Lbean/ShopBean;->setpscost(Ljava/lang/String;)V

    .line 549
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    const-string v10, "canps"

    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setcanps(Ljava/lang/String;)V

    .line 550
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 551
    const-string v10, "starttime"

    .line 550
    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setstarttime(Ljava/lang/String;)V

    .line 552
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 553
    const-string v10, "arrivetime"

    .line 552
    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setarrivetime(Ljava/lang/String;)V

    .line 554
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 555
    const-string v10, "address"

    .line 554
    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setaddress(Ljava/lang/String;)V

    .line 556
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    const-string v10, "point"

    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setSellcount(Ljava/lang/String;)V

    .line 558
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    const-string v10, "shoptype"

    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Lbean/ShopBean;->setShoptype(Ljava/lang/String;)V

    .line 559
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$8;->this$0:Lcom/example/m6wmr/SearchActivity;

    # getter for: Lcom/example/m6wmr/SearchActivity;->temshopls:Ljava/util/List;
    invoke-static {v9}, Lcom/example/m6wmr/SearchActivity;->access$13(Lcom/example/m6wmr/SearchActivity;)Ljava/util/List;

    move-result-object v9

    invoke-interface {v9, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 531
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_1
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 576
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 577
    monitor-exit p0

    return-void

    .line 576
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
